package net.bac.sbe.common.logger;

import java.util.logging.Level;
import java.util.logging.Logger;


public final class LoggerService {
	private static final  String DEFAULT_LOGGER = "DEFAULT-LOGGER";
	
	private LoggerService(){
		super();
	}
	
	public static void logException(Level level, String message, Throwable throwable){
		logException(DEFAULT_LOGGER, level, message, throwable);
	}
	
	public static void logException(String logger, Level level, String message, Throwable throwable){
		Logger.getLogger(logger).log(level, message, throwable);
	}
	
	public static void logInformation(String logger, Level level, String message){
		Logger.getLogger(logger).log(level, message);
	}
	
	public static void logInformation(Level level, String message){
		logInformation(DEFAULT_LOGGER, level, message);
	}
	
	public static void logInformation(String message){
		logInformation(Level.INFO, message);
	}
}
